package payload

type Exploit interface {
	Attack() error
	CreateProxy() (string, error)
}

func NewExploit(cve, target string) Exploit {
	switch cve {
	case "VUL-2021-04271":
		return NewVUL_2021_04271(target)
	case "VUL-2021-04272":
		return NewVUL_2021_04272(target)
	case "CVE-2017-10271":
		return NewCVE_2017_10271(target)
	default:
		return nil
	}
}
